import java.io.*;
import java.util.*;

/* @Date 03 March 2008
 * @Author Hussein Patwa
 * Class to retrieve values from CSV file - Fixed row/colums
 */


public class csvinput
{

	values = new String[30][3];
	File file = new File("data.csv");
	
	BufferedReader bufRdr  = new BufferedReader(new FileReader(file));
	
	String line = null;
	int row = 0;
	int col = 0;
	
	// Read each line of the CSV file
	while((line = bufRdr.readLine()) != null)
	{
		StringTokenizer st = new StringTokenizer(line,",");
		while (st.hasMoreTokens())
		{
			// get next token and store it in the array
			String values;
			values[row][col] = st.nextToken();
			col++;
		}
		row++;
	}
	
	// close the file
	bufRdr.close(); 
	
} }
